package com.buka.seckill.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "itbuka_seckill")
@Data
public class Seckill implements Serializable {
    @Id
    private Long id;

    /**
     * 活动名称
     */
    @Column(name = "seckill_name")
    private String seckillName;

    /**
     * 开始时间
     */
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 申请规则
     */
    @Column(name = "seckill_rule")
    private String seckillRule;

    /**
     * 时间场次
     */
    private String frequency;
    /**
     * 删除标识
     */
    @Column(name = "is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}